<?php
$id = $epg['id'];
$data = file_get_contents('http://sportcast.com.tw/bos_m/golf.php?item_id='.$id);
preg_match_all('/<li><span>(.*?)<\/span>(.*?)</',$data,$epgdata);
for($i = 0; $i <= count($epgdata[1]) - 1; $i++) {
    echo '<li><span>'.preg_replace('/ ~ (.*?)$/','',$epgdata[1][$i]).'&nbsp&nbsp&nbsp&nbsp'.str_replace(' - ','',$epgdata[2][$i]).'</span></li>';
};